<div class="bjui-pageContent">
    <form action="{:U('editBill')}" class="pageForm" data-toggle="validate" method="post">
         <input type="hidden" name="id" value="{:I('get.id')}">
        <table class="table table-condensed table-hover">
            <tbody>
                <tr>
                    <td colspan="2" align="center"><h3>添加账单</h3></td>
                </tr>
                <tr>
                    <td>
                        <label for="j_dialog_parent" class="control-label x90">所属银行：</label>
						<select name="bank_id" data-toggle="selectpicker">
							<option value="">请选择网店</option>
							<?php foreach($bankList as $bank):?>
							<option value="{$bank.id}" <?php echo $billInfo['bank_id']==$bank['id'] ? "selected='true'" : "";?>>{$bank.name}</option>
							<?php endforeach;?>
						</select>
                    </td>
                    <td>
                        <label for="j_dialog_name" class="control-label x90">账单名称：</label>
                        <input type="text" name="name" id="j_dialog_name" value="{$billInfo.name}" data-rule="required" size="15">
                    </td>
                </tr>
               
                <tr>
                    <td>
                        <label for="j_custom_start" class="control-label x90">开始时间：</label>
                        <input type="text" data-toggle='datepicker'  name="start_time" class="form-control" size="15"  data-rule="required" value="{:date('Y-m-d H:i:s', $billInfo['start_time'])}" />
                        <!--<input type="text" name="sort" id="j_dialog_sort" value="{$infoArr.sort}" size="20">-->
                    </td>
                    <td>
                        <label for="j_dialog_end" class="control-label x90">结束时间：</label>
                       <input type="text" data-toggle='datepicker'  name="end_time" class="form-control" size="15"  data-rule="required" value="{:date('Y-m-d H:i:s', $billInfo['end_time'])}"/>
                    </td>
                </tr>
                <tr>
                    <td>
                        <label for="" class="control-label x85">账单总金额：</label>
                        <input type="text" name="total" id="j_dialog_total"  data-rule="required" size="15" value="{$billInfo.total}">
                    </td>
					 <td>
                        <label for="" class="control-label x85">账单总佣金：</label>
                       <input type="text" name="commission" id="j_dialog_commission"  data-rule="required" size="15" value="{$billInfo.commission}">
                    </td>
                </tr>
				 
				 <tr>
                    <td colspan="2">
                        <label for="" class="control-label x85">实际总金额：</label>
                        <input type="text" name="actual_amount" id="j_actual_amount"  data-rule="required" size="15" value="{$billInfo.actual_amount}">
                    </td>
                </tr>
            </tbody>
        </table>
    </form>
</div>
<div class="bjui-pageFooter">
    <ul>
        <li><button type="button" class="btn-close">关闭</button></li>
        <li><button type="submit" class="btn-default">保存</button></li>
    </ul>
</div>